package com.siyougame.business.dal.dataobject.inspect;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import com.baomidou.mybatisplus.annotation.*;
import com.siyougame.mybatis.mybatis.core.dataobject.BaseDO;
import org.springframework.format.annotation.DateTimeFormat;

import static com.siyougame.common.utils.DateUtils1.FORMAT_YEAR_MONTH_DAY;

/**
 * 检查记录 DO
 *
 * @author ${table.author}
 */
@TableName("bus_inspect")
@KeySequence("bus_inspect_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InspectDO extends BaseDO {

    /**
     * ${column.columnComment}
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 模板id
     */
    private Long tempId;
    /**
     * 检查标题
     */
    private String title;
    /**
     * 检查名称
     */
    private String name;
    /**
     * 船只
     */
    private String vessels;
    /**
     * 检查时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate inspectDay;
    /**
     * 检查地点
     */
    private String address;
    /**
     * ${column.columnComment}
     */
    private Long status;
    /**
     * 备注
     */
    private String remark;
    /**
     * 排序
     */
    private Long sortRank;
    /**
     * ${column.columnComment}
     */
    private String description;
    /**
     * 客户端用户
     */
    private String xcxUserId;
    /**
     * 是否删除
     */
    @TableLogic
    private Long deleted;

    @TableField(exist = false)
    private String nickname;
    @TableField(exist = false)
    private String thirdDepartment;

    private String departmentId;
    private String userId;
    private String userName;
}
